
package com.xj.common.bean.device;



import com.fasterxml.jackson.annotation.JsonFormat;
 import com.fasterxml.jackson.annotation.JsonInclude;
 import java.io.Serializable;
import java.util.Date;
 import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;



@Document

@JsonInclude(JsonInclude.Include.NON_NULL)
 public class DeviceStatus implements Serializable {
       private static final long serialVersionUID = 1L;
    
    @MongoId
    private String id;

    
    /* 15 */
    public DeviceStatus setId(String id) {
        this.id = id;
        return this;
    }

    private Long deviceId;
    private Integer status;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
    private Date ts;

    public DeviceStatus setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public DeviceStatus setStatus(Integer status) {
        this.status = status;
        return this;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
    public DeviceStatus setTs(Date ts) {
        this.ts = ts;
        return this;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof DeviceStatus)) return false;
        DeviceStatus other = (DeviceStatus) o;
        if (!other.canEqual(this)) return false;
        Object this$deviceId = getDeviceId(), other$deviceId = other.getDeviceId();
        if ((this$deviceId == null) ? (other$deviceId != null) : !this$deviceId.equals(other$deviceId)) return false;
        Object this$status = getStatus(), other$status = other.getStatus();
        if ((this$status == null) ? (other$status != null) : !this$status.equals(other$status)) return false;
        Object this$id = getId(), other$id = other.getId();
        if ((this$id == null) ? (other$id != null) : !this$id.equals(other$id)) return false;
        Object this$ts = getTs(), other$ts = other.getTs();
        return !((this$ts == null) ? (other$ts != null) : !this$ts.equals(other$ts));
    }

    protected boolean canEqual(Object other) {
        return other instanceof DeviceStatus;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $deviceId = getDeviceId();
        result = result * 59 + (($deviceId == null) ? 43 : $deviceId.hashCode());
        Object $status = getStatus();
        result = result * 59 + (($status == null) ? 43 : $status.hashCode());
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $ts = getTs();
        return result * 59 + (($ts == null) ? 43 : $ts.hashCode());
    }

    public String toString() {
        return "DeviceStatus(id=" + getId() + ", deviceId=" + getDeviceId() + ", status=" + getStatus() + ", ts=" + getTs() + ")";
    }

    
    public DeviceStatus() {
    }

    
    public DeviceStatus(String id, Long deviceId, Integer status, Date ts) {
        /* 18 */
        this.id = id;
        this.deviceId = deviceId;
        this.status = status;
        this.ts = ts;
        
    }

    
    
    
    
    public String getId() {
        /* 24 */
        return this.id;
        
    }

    
    
    public Long getDeviceId() {
        /* 28 */
        return this.deviceId;
        
    }

    
    
    public Integer getStatus() {
        /* 32 */
        return this.status;
        
    }

    
    public Date getTs() {
        /* 35 */
        return this.ts;
        
    }

    
    public DeviceStatus(Long deviceId, Integer status, Date ts) {
        /* 38 */
        this.deviceId = deviceId;
        /* 39 */
        this.status = status;
        /* 40 */
        this.ts = new Date();
        
    }
    
}


/* Location:              C:\Users\Administrator\Desktop\fsdownload\ie-data.jar!\BOOT-INF\lib\ie-base-1.0-SNAPSHOT.jar!\com\xj\common\bean\device\DeviceStatus.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */